package com.linjacy.httpproject;

import com.linjacy.httpproject.component.MyBootContentScanHandler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication(scanBasePackages = "com.linjacy")
@MapperScan(value = "com.linjacy.httpproject.mapper")
public class HttpProjectApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        MyBootContentScanHandler.init();
        SpringApplication.run(HttpProjectApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(HttpProjectApplication.class);
    }
}
